package graphics;

public class Round extends Graphics
{
	public Round()
	{
		super.name = "圆";
	}
	private float Radius;
	float half;
	public float getRadius()
	{
		return Radius;
	}

	public void setRadius(float Radius)
	{
		this.Radius = Radius;
	}
	public void area()
	{
		float area ;
		area = Radius * half * half;
		System.out.println(name+"的面积是："+area);
	}
	public void perimeter() 
	{
		float perimeter;
		perimeter = Radius * half * 2;
		System.out.println(name+"的周长是："+perimeter);
	}
}
